<template>
    <div>
        <el-container style="height: 100vh;">
            <el-header style="background-color: antiquewhite; line-height: 60px;">
                <el-col :span="1" style="height: 60px; margin-left: 10px;"><el-image style="width: 60px; height: 60px;"
                        :src="logoUrl"></el-image></el-col>
                <el-col :span="4">
                    蜗牛共享车位平台端
                </el-col>
            </el-header>
            <el-container style="height: 100vh;">
                <el-aside width="200px" style="background-color: aquamarine;">
                    <el-row class="tac" style="height: 100%; width: 100%;">
                        <el-col :span="24" style="height: 100%; width: 100%;">
                            <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen"
                                @close="handleClose" style="height: 100%; width: 100%;" router>               
                                <el-menu-item index="PlatformBidAdmin">
                                    <i class="el-icon-truck"></i>
                                    <span slot="title">审核申请管理员列表</span>
                                </el-menu-item>    
                                <el-menu-item index="PlatformLoadAllAdmin">
                                    <i class="el-icon-truck"></i>
                                    <span slot="title">查询全部管理员列表</span>
                                </el-menu-item>
                                <el-menu-item index="PassAllAppLication">
                                    <i class="el-icon-truck"></i>
                                    <span slot="title">查询全部物业申请列表</span>
                                </el-menu-item>                   
                            </el-menu>
                        </el-col>
                    </el-row>
                </el-aside>
                <el-main>
                    <router-view />
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script>
import router from '../router';

export default {
    name: "PlatformIndex",
    data() {
        return {
            logoUrl: "../../static/images/system/woniu.png"
        };
    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        }
    },
    created() {
    },
    components: { router }
}
</script>

<style scoped>
html,
body {
    height: 100%;
}
</style>